package itu.dk.bosk.ex3;

public class HttpErrorCodes {
	
	
	/*

	| "400"  ; Section 10.4.1: Bad Request 
	| "401"  ; Section 10.4.2: Unauthorized 
	| "402"  ; Section 10.4.3: Payment Required 
	| "403"  ; Section 10.4.4: Forbidden 
	| "404"  ; Section 10.4.5: Not Found 
	| "405"  ; Section 10.4.6: Method Not Allowed 
	| "406"  ; Section 10.4.7: Not Acceptable
	*/
	
	public enum StatusCode {
		HTTP400("Bad Request"),
		HTTP401("Uauthorized"),
		HTTP402("Payment Required"),
		HTTP403("Forbidden"),
		HTTP404("Not Found") ,
		HTTP405("Method Not Allowed"),
		HTTP406("Not Acceptable");
		
		private final String description;
		
		StatusCode(String description) {
			this.description = description;
		}
		
		public String getDescription() {
			return description;
		}
		
	}
	
	public String sendStatus(StatusCode statusCode) {
		return statusCode.getDescription();
	}
}
